//
//  AddBusineseLinenceCommitTableViewCell.m
//  PropertyManager
//
//  Created by TNG on 2018/8/15.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import "AddBusineseLinenceCommitTableViewCell.h"

@implementation AddBusineseLinenceCommitTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self creatUI];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.separatorInset = UIEdgeInsetsMake(0, 0, 0, MAXFLOAT);
    }
    return self;
}

-(void)creatUI{
    [self.contentView addSubview:self.btn];
}

-(UIButton *)btn
{
    if(_btn == nil)
    {
        _btn = [[UIButton alloc] initWithFrame:CGRectMake(20, 15, WIDTH - 40, 45)];
        [_btn setBackgroundColor:SFMColor(254, 101, 54)];
        [_btn setTitle:@"提交" forState:UIControlStateNormal];
        _btn.titleLabel.font = font(16);
        _btn.layer.cornerRadius = 22.5;
    }
    return _btn;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
